#include "HttpServer.hpp"

#include <iostream>
#include <string>
#include <memory>

using namespace std;

string HttpHandler(const string& request)
{
    // 打印请求
    cout << request << endl;
    return "";
}

int main()
{
    unique_ptr<HttpServer::Server> psvr(new HttpServer::Server(HttpHandler));

    psvr->Init();
    psvr->Start();
    
    return 0;
}